jQuery.fn.highlight = function() {
 function innerHighlight(node) {
  if (node.nodeType == 3) {

    var spannode = document.createElement('span');
    spannode.className = 'light_highlight';
    var middleclone = node.cloneNode(true);
    spannode.appendChild(middleclone);
    node.parentNode.replaceChild(spannode, node);
   }
  return ;
 }
 return this.each(function() {
  innerHighlight(this);
 });
};


jQuery.fn.removeHighlight = function() {
 return this.find("span.light_highlight").each(function() {
  this.parentNode.firstChild.nodeName;
  with (this.parentNode) {
   replaceChild(this.firstChild, this);
   normalize();
  }
 }).end();
};

